package com.specialized.driver.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.specialized.common.core.annotation.Excel;
import com.specialized.common.core.web.domain.BaseEntity;

/**
 * 司机对象 driver
 *
 * @author djh
 * @date 2024-07-22
 */
public class Driver extends BaseEntity {


private static final long serialVersionUID=1L;

    /** 司机id */
    private Long driverId;

    /** 手机号 */
    @Excel(name = "手机号")
    private String driverTel;

    /** 姓名 */
    @Excel(name = "姓名")
    private String driverName;

    /** 性别 */
    @Excel(name = "性别")
    private String driverSex;

    /** 所属城市 */
    @Excel(name = "所属城市")
    private String belongingCity;

    /** 合同开始时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "合同开始时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date startTime;

    /** 合体结束时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "合体结束时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date endTime;

    /** 车辆id */
    @Excel(name = "车辆id")
    private Long carId;

    /** 状态0：启用1:停用2：出车3：结束 */
    @Excel(name = "状态0：启用1:停用2：出车3：结束")
    private String status;

    public void setDriverId(Long driverId)
            {
            this.driverId = driverId;
            }

    public Long getDriverId()
            {
            return driverId;
            }
    public void setDriverTel(String driverTel)
            {
            this.driverTel = driverTel;
            }

    public String getDriverTel()
            {
            return driverTel;
            }
    public void setDriverName(String driverName)
            {
            this.driverName = driverName;
            }

    public String getDriverName()
            {
            return driverName;
            }
    public void setDriverSex(String driverSex)
            {
            this.driverSex = driverSex;
            }

    public String getDriverSex()
            {
            return driverSex;
            }
    public void setBelongingCity(String belongingCity)
            {
            this.belongingCity = belongingCity;
            }

    public String getBelongingCity()
            {
            return belongingCity;
            }
    public void setStartTime(Date startTime)
            {
            this.startTime = startTime;
            }

    public Date getStartTime()
            {
            return startTime;
            }
    public void setEndTime(Date endTime)
            {
            this.endTime = endTime;
            }

    public Date getEndTime()
            {
            return endTime;
            }
    public void setCarId(Long carId)
            {
            this.carId = carId;
            }

    public Long getCarId()
            {
            return carId;
            }
    public void setStatus(String status)
            {
            this.status = status;
            }

    public String getStatus()
            {
            return status;
            }

@Override
public String toString(){
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("driverId",getDriverId())
            .append("driverTel",getDriverTel())
            .append("driverName",getDriverName())
            .append("driverSex",getDriverSex())
            .append("belongingCity",getBelongingCity())
            .append("startTime",getStartTime())
            .append("endTime",getEndTime())
            .append("carId",getCarId())
            .append("status",getStatus())
        .toString();
        }



}
